<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ejs</title>
</head>
<body>
    <h2>
        <!-- <%=  %> 模板语法用于提取变量 -->
        <%= name %>
    </h2>
    <ul>
        <!-- <%  %> 模板语法用于语句 -->
        <% arr.forEach(item=>{  %>
            <li>
                <%= item %>
            </li>
        <% }) %> 
    </ul>
</body>
</html>